home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / snappingEditorWin.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.6 KB  |  80 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //  ========== snappingEditorWin.mel ==========
  18. //
  19. //    Alias|Wavefront Script File
  20. //    MODIFY THIS AT YOUR OWN RISK
  21. //
  22. //    Creation Date:  16 April 1996
  23. //    Author:         adavis
  24. //
  25. //    Description:
  26. //        Create and show a dialog for editing snapping parameters.
  27. //
  28. //    Return Value:
  29. //        None.
  30. //
  31. //    Contents
  32. //        snappingEditorWin()        - Create a new editor dialog.
  33. //
  34.  
  35. global proc snappingEditorWin() 
  36. {
  37.     string  $windowName = "snappingEditorWin";
  38.     if ( ! `window -exists $windowName`)
  39.     {
  40.         // CREATE new dialog 
  41.         //
  42.         window -t "Snapping Editor" -ret -ip
  43.             -mnb false -mxb false -tlc 120 740 $windowName;
  44.  
  45.            // Anonymous layout.
  46.         frameLayout -lv false -bv false -cll false -mw 6 -mh 6 snappingEditorFL;
  47.         columnLayout -cat "both" 5 -adj true -rs 6 snappingEditorCL;
  48.  
  49.  
  50.         // Snapping attributes.
  51.         //
  52.  
  53.         intSliderGrp -field true -l "Snap Tolerance"
  54.             -min 0 -max 100 -step 1 -cw 1 170 -cw 3 140
  55.             -cc "snapMode -tolerance #1" snapTol_ISG;
  56.         intSliderGrp -field true -l "Span Divisions"
  57.             -min 0 -max 100 -step 1 -cw 1 170 -cw 3 140
  58.             -cc "snapMode -spanDivisions #1" spanDiv_ISG;
  59.  
  60.         // Increment snapping turned off for Maya V1.0 - Moira 18/3/97
  61.         // 
  62.         //floatSliderGrp -field true -l "Distance Increment"
  63.         //    -min 0 -max 10 -pre 2 -step 0.25 -cw 1 170 -cw 3 140
  64.         //    -cc "snapMode -distanceIncrement #1" distanceInc_FSG;
  65.         //floatSliderGrp -field true -l "Rotate Increment"
  66.         //    -min 0 -max 90 -pre 2 -step 0.5 -cw 1 170 -cw 3 140
  67.         //    -cc "snapMode -rotateIncrement #1" rotateInc_FSG;
  68.         //floatSliderGrp -field true -l "Scale Increment"
  69.         //    -min 0 -max 10 -pre 2 -step 0.25 -cw 1 170 -cw 3 140
  70.         //    -cc "snapMode -scaleIncrement #1" scaleInc_FSG;
  71.  
  72.     }
  73.  
  74.     snappingEditorUpdate;
  75.  
  76.     showWindow $windowName;
  77.  
  78. } // snappingEditorWin //
  79.  
  80.